package com.wang.mybatisdemo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface BaseDao {
    void add(@Param("tableName") String  tableName,@Param("param")Map<String,Object> myMap);

    void update(@Param("tableName") String tableName,@Param("conditionParam") Map<String, Object> conditionParam,@Param("param") Map<String, Object> param);

    void delete(@Param("tableName") String tableName, @Param("conditionParam")  Map<String,Object> conditionParam);

    Integer selectCountByParam(@Param("tableName")String tableName,@Param("conditionParam") Map<String, Object> conditionParam);

    Integer selectCountByAll(@Param("tableName")String tableName);
}
